function sendData(data, code, message) {
  this.data = data;
  this.code = code || 0;
  this.message = message || '操作成功！';
  var result = {
    code: this.code,
    data: this.data,
    message: this.message
  }
  return result;
}

var utils = {
  sendData: sendData
}
module.exports = utils;